<template>
    <div id="reference-model">
        <div class="left">
            <img :src="modelImage" alt="" srcset="">
            <div class="model">
                <div class="name">{{ modelName }}</div>
                <el-tag type="success">{{ modelType }}</el-tag>
            </div>
        </div>
        <div class="right">
            <el-icon><ArrowRight /></el-icon>
        </div>
    </div>
</template>

<script setup>
import { defineProps,computed } from 'vue';
import { ArrowRight } from "@element-plus/icons-vue";
const props = defineProps(["modelImage","modelName","modelType"])

const modelName = computed(()=>{
    return props.modelName   
})

const modelType = computed(()=>{
    return props.modelType   
})
const modelImage = computed(()=>{
    return props.modelImage   
})
</script>

<style scoped>
#reference-model {
    display: flex;
    display: -webkit-flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(0,0,0,0.1);
    padding: 10px;
    border-radius: 5px;
}

#reference-model .left img{
    width: 50px;
    height: 50px;
    border-radius: 5px;
}

#reference-model .left{
    display: flex;
    display: -webkit-flex;
    justify-content: space-between;
    align-items: center;
}

#reference-model .left .model{
    margin-left: 10px;
    font-size: 12px;
    line-height: 20px;
}


</style>